package homework;

public class UniqueNum {
	
	int[] a={4,4,60,60,23,12,5,5,5,101,4,101};
	int count;
	
	void uniquenum()
	{
		for(int i=0;i<a.length;i++)
	  {   count=0;
	  
			for(int j=0;j<a.length;j++)
			{  
				if ((i != j) && (a[i]==a[j])) 
					count++;
			}
			
			if (count == 0) 
	         System.out.println(a[i]);
			 else 
			 System.out.println("Duplicates of " + a[i] + "=" + ++count);
			
	  }
		  	
    }
} 
